package com.tech.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面展示Controller
 * <p>Title: PageController</p>
 * <p>Description: </p>
 * <p>Company: www.itcast.cn</p> 
 * @version 1.0
 */
@Controller
public class PageJumpController {

	/**
	* @Title showIndex
	* @Description /modules/sys/ 
	* @return
	* {@link }
	* @since 2018年5月27日 下午6:58:25
	*/
	@RequestMapping("/")
	public String showIndex() {
		return "/modules/sys/index";
	}
	
	@RequestMapping("/{page}")
	public String showPage(@PathVariable String page) {
		System.out.println("----------------");
		return "/modules/sys/"+page;
	}
	
}
